package com.sxtbbs.dao;

import java.util.List;

import com.sxtbbs.bean.BBSBlog;
import com.sxtbbs.bean.BBSBoard;
import com.sxtbbs.bean.BBSChildboard;
import com.sxtbbs.bean.BBSReplyBlog;
import com.sxtbbs.bean.BBSUser;
import com.sxtbbs.bean.ProvCity;

public interface UserDao {
	
	public List<BBSBoard> getBoard();
	
	public List<BBSChildboard> getChildBoard();
	
	public BBSUser getUser(String uname);
	
	public void addUser(BBSUser bbsUser);
	
	public List<ProvCity> getProv();
	
	public List<ProvCity> getCity(String proid);
	
	public List<BBSBlog> getBlog(String cboid, int startPos, int pageSize);
		
	public BBSBlog getBlogDetail(String bloid);
	
	public List<BBSReplyBlog> getReplyBlog(String bloid, int startPos, int pageSize);
	
	public void post(BBSBlog bbsBlog);
	
	public void reply(BBSReplyBlog bbsReplyBlog);
	
	public int getTotalBlog(String cboid);
	
	public int getTotalRepbly(String bloid);
}
